package com.dl.code.service.impl;

import com.dl.code.entity.Role;
import com.dl.code.mapper.RoleMapper;
import com.dl.code.service.RoleService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * 作者: DL代先生
 * 日期: 2021/5/29
 * 时间: 20:34
 * 内容: Shiro与springboot整合教程！
 * 描述:
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleMapper roleMapper;

    @Override
    public Role selectRoleById(Integer roleId) {
        Role role = roleMapper.selectById(roleId);
        return role;
    }
}
